<template>
    <el-card class="">
        <template #header>
            <div class="card-header">
                <span>{{ title }}</span>
                <slot name="extra"></slot>
            </div>
        </template>
        <slot name="form"></slot>
    </el-card>
</template>
<script setup>
import { defineProps } from 'vue'
defineProps({
    title: {
        type: String,
        required: true
    }
})
</script>
<style lang="less" scoped>
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    span {
        font-weight: 600;
    }
}

.text {
    font-size: 14px;
}

.item {
    margin-bottom: 18px;
}

.box-card {
    width: 100%;
}
</style>